package com.ahs.region.config;

import org.springframework.web.servlet.config.annotation.EnableWebMvc;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport;

/**
 * ClassName: ServletContextConfig<br>
 * Description: 自定配置类.<br>
 *
 * @author Sean
 * @date: 2016年11月15日 下午7:57:39
 * @version V1.0
 * @since JDK 1.8
 */
@EnableWebMvc
public class WebConfig extends WebMvcConfigurationSupport {

	@Override
	public void addResourceHandlers(ResourceHandlerRegistry registry) {
		registry.addResourceHandler("swagger-ui.html").addResourceLocations("classpath:/META-INF/resources/");
		registry.addResourceHandler("/webjars/**").addResourceLocations("classpath:/META-INF/resources/webjars/");

	}

	@Override
	public void addInterceptors(InterceptorRegistry registry) {
	
	}
}
